package com.yc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: science_merit
 * @description: 前端页面分发
 * @author: 作者 huchaojie
 * @create: 2023-04-04 16:21
 */
@Controller
public class HtmlController {

    /**
     * 登录界面
     * @return
     */
    @RequestMapping(value = "/")
    public String login() { return "login"; }


    /**
     * 登录界面
     * @return
     */
    @RequestMapping(value = "/login")
    public String loginIndex() { return "login"; }


    /**
     * 提示未登录界面otherlogin
     * @return
     */
    @RequestMapping(value = "/nologin")
    public String nologin() { return "errorpage/nologin"; }

    /**
     * 提示重新登录界面
     * @return
     */
    @RequestMapping(value = "/otherlogin")
    public String otherlogin() { return "errorpage/otherLogin"; }


    /**
     * 提示重新登录界面
     * @return
     */
    @RequestMapping(value = "/403")
    public String accessDenied() { return "errorpage/403"; }

    /**
     * 主界面
     * @return
     */
    @RequestMapping(value = "/frame")
    public String frame() { return "frame"; }


    /**
     * 首页
     * @return
     */
    @RequestMapping(value = "/index")
    public String index() { return "index"; }

    /**
     * 系统用户管理
     * @return
     */
    @RequestMapping(value = "/admin_back/{urlPath}")
    public String user(@PathVariable String urlPath) { return "admin_back/"+urlPath; }

    /**
     * 修改密码
     * @return
     */
    @RequestMapping(value = "/updatePassword")
    public String updatePassword() { return "updatePassword"; }

}
